package com.xiaomaoguai.service;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xiaomoaguai.service.HelloService;

/**
 * @Description :
 * @FileName: Consumer.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年5月3日 下午3:37:40
 * @Version:V1.00
*/
public class Consumer {

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("Consumer.xml");
		context.start();
		HelloService helloService = (HelloService) context.getBean("helloService");
		System.out.println(helloService.sayHello("mike"));
		System.in.read(); 
	}

}
